Shader "TideShader/5_漫反射和高光"
{
    Properties
    {
        _MainTex ("Texture", 2D) = "white" {}

        //环境光颜色
        _AmbientColor("环境光颜色",Color) = (1,1,1,1)
        //漫反射颜色
        _DiffuseColor("漫反射颜色",Color) = (1,1,1,1)
        //高光颜色
        _SpecularColor("高光颜色",Color) = (1,1,1,1)
        //光滑度
        _Shininess("光滑度",Range(0.01,1))=0.5
        //自发光颜色
        _EmissionColor("自发光颜色",Color) = (1,1,1,1)

    }
    SubShader {
        Pass{
            Lighting On
            SeparateSpecular On
            Material{
                Ambient[_AmbientColor]
                Diffuse[_DiffuseColor]
                Specular[_SpecularColor]
                Shininess[_Shininess]
                Emission[_EmissionColor]
            }
            SetTexture[_MainTex]{
                Combine Primary*Texture
            }
        }
    }
}